#import "SEGUserselectbyuserModel.h"

@implementation SEGUserselectbyuserListModel
-(instancetype)init{
    if (self == [super init]) {
        _imagePath = @"";
        _houseId = @"";
        _enterpriseId = @"";
        _roleId = @"";
        _userType = @"";
        _enterpriseName = @"";
        _communityId = @"";
        _enterpriseUserId = @"";
        _userTel = @"";
        _custId = @"";
        _propId = @"";
        _custName = @"";
        _roleName = @"";
        _communityName = @"";
        _status = @"";
        _headPortraitPath = @"";
    }
    return self;
}

-(NSString*)statusValue{
    if ([self.status integerValue] == SEGEnumUserSelectbyUserType_Normal) {
        return @"已认证";
    }
    if ([self.status integerValue] == SEGEnumUserSelectbyUserType_NeedCheck) {
        return @"审核中";
    }
    if ([self.status integerValue] == SEGEnumUserSelectbyUserType_Useless) {
        return @"已停用";
    }
    return @"审核失败";
}

-(NSString*)userTypeValue{
    if ([self.userType isEqualToString:@"1"]) {
        return @"企业管理员";
    }
    return @"企业员工";
}
@end

@implementation SEGUserselectbyuserDataModel
-(instancetype)init{
    if (self == [super init]) {
        _list = [NSArray<SEGUserselectbyuserListModel*> array];
    }
    return self;
}

+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"list":SEGUserselectbyuserListModel.class};
}

@end

@implementation SEGUserselectbyuserModel
-(instancetype)init{
    if (self == [super init]) {
        _message = @"";
        _data = [[SEGUserselectbyuserDataModel alloc]init];
        _code = @"";
    }
    return self;
}
@end


